import React, { useEffect } from 'react';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import './index.less';

export default function LoadingComponent() {
    useEffect(() => { 
        NProgress.start();
        return () => {
           NProgress.done();
        };
      });
    return (
        <div className='bar' />
    );
}